Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Function |status

http/status::|status


Usage

|status(code)

Parameters

↳ code: u16

Return

↴ Option<HttpStatus>


Parse an HTTP status from its numeric code.

Returns None if code does not correspond to a recognised HTTP status.